package org.millioncall.yueyoga.admin.model;

import java.util.Date;

import org.apache.commons.lang.StringUtils;
import org.millioncall.openplatform.util.DateTimeUtils;

/**
 * 主页下任务记录
 * 
 * @author zangjinyu
 * @since 1.0.0(2014-5-2)
 * 
 */
public class HomePageTaskRecord {
	private String rwbh; // 任务编号
	private String rwmz; // 任务名称
	private String rwzt; // 任务状态
	private String rwbz; // 任务备注
	private String gzap; // 工作安排
	private Date dqsj;   // 到期时间
	private String hybh; // 会员编号
	private String hykh; // 会员卡号
	private String hyxm; // 会员姓名
	private String hysjh;// 会员手机号
	private String xxly; // 信息来源
	private String hyzt; // 会员状态
	private String hyzzt;// 会员子状态
	private Date cjsj;   // 创建时间
	private String rwfzr;// 任务负责人
	private String rwczr;//任务创建人

	public String getCjsj() {
		DateTimeUtils dtu = DateTimeUtils.getInstance();
		return dtu.format(this.cjsj, "yyyy-MM-dd HH:mm:ss");
	}

	public void setCjsj(Date cjsj) {
		this.cjsj = cjsj;
	}

	public String getGzap() {
		return gzap == null?"":gzap;
	}

	public void setGzap(String gzap) {
		this.gzap = gzap;
	}

	public String getDqsj() {
		DateTimeUtils dtu = DateTimeUtils.getInstance();
		if (this.dqsj != null) {
			return dtu.format(this.dqsj, "yyyy-MM-dd");
		}
		return null;
	}
	
	public Date getDqsjDate() {
		return this.dqsj;
	}
	
	public Date getCjsjDate() {
		return this.cjsj;
	}

	public void setDqsj(Date dqsj) {
		this.dqsj = dqsj;
	}

	public String getHybh() {
		return hybh == null?"":hybh;
	}

	public void setHybh(String hybh) {
		this.hybh = hybh;
	}

	public String getHyxm() {
		return hyxm == null?"":hyxm;
	}

	public void setHyxm(String hyxm) {
		this.hyxm = hyxm;
	}

	public String getHysjh() {
		return hysjh == null?"":hysjh;
	}

	public void setHysjh(String hysjh) {
		this.hysjh = hysjh;
	}

	public String getXxly() {
		return xxly == null?"":xxly;
	}

	public void setXxly(String xxly) {
		this.xxly = xxly;
	}

	public String getHyzt() {
		return hyzt == null?"":hyzt;
	}

	public void setHyzt(String hyzt) {
		this.hyzt = hyzt;
	}

	public String getHyzzt() {
		return hyzzt == null?"":hyzzt;
	}

	public void setHyzzt(String hyzzt) {
		this.hyzzt = hyzzt;
	}

	public String getRwbh() {
		return rwbh == null?"":rwbh;
	}

	public void setRwbh(String rwbh) {
		this.rwbh = rwbh;
	}

	public String getRwmz() {
		return rwmz == null?"":rwmz;
	}

	public void setRwmz(String rwmz) {
		this.rwmz = rwmz;
	}

	public String getRwzt() {
		if(StringUtils.isNotBlank(rwzt)){
			if("0".equals(rwzt)){
				rwzt = "已取消";
			}else if("1".equals(rwzt)){
				rwzt = "进行中";
			}else if("2".equals(rwzt)){
				rwzt = "已完成";
			}
		}
		return rwzt;
	}

	public void setRwzt(String rwzt) {
		this.rwzt = rwzt;
	}

	public String getRwbz() {
		return rwbz == null?"":rwbz;
	}

	public void setRwbz(String rwbz) {
		this.rwbz = rwbz;
	}

	public String getRwfzr() {
		return rwfzr == null?"":rwfzr;
	}

	public void setRwfzr(String rwfzr) {
		this.rwfzr = rwfzr;
	}

	public String getHykh() {
		return hykh == null?"":hykh;
	}

	public void setHykh(String hykh) {
		this.hykh = hykh;
	}

	public String getRwczr() {
		return rwczr == null?"":rwczr;
	}

	public void setRwczr(String rwczr) {
		this.rwczr = rwczr;
	}
	
	
}
